// @ts-ignore
import result from '/@utils/Axios.ts'

export function goGet(query: any, url: string) {
    return result({
        url: url,
        method: 'get',
        params: query
    })
}

export function goPost(query: any, url: string) {
    return result({
        url: url,
        method: 'post',
        data: query
    })
}

export function goPut(query: any, url: string) {
    return result({
        url: url,
        method: 'put',
        data: query
    })
}

export function goDelete(query: any, url: string) {
    return result({
        url: url,
        method: 'delete',
        params: query
    })
}